function [hypoSorted] = hw8Sort(inputArray, hypo)
% Sorting an array with 
totPopElements = size(hypo,2);
hypoSorted = inputArray;
i = 1;

while (i < totPopElements-1)
    a = hypo(1,i);
    b = hypo(1,i+1);
    if(hypoSorted(1,a)<hypoSorted(1,b))
        temp = hypoSorted(1,b); 
        hypoSorted(1,b) = hypoSorted(1,a);
        hypoSorted(1,a) = temp;
    end
    i=i+2;
end




